package com.dimeng.entity;

import android.view.View;
import android.widget.TextView;

import com.dimeng.R;

/**
 * @author write by ccn<br>
 *         <b>helloandroid100@gmail.com</b>
 * @version 0.1;2012-5-20 下午7:11:00<br>
 *          descrition:公司搜索结果的ListView的item视图缓存
 */
public class CompanySearchViewCache {
	private View baseView;

	private TextView companyNameView;
	private TextView businessModelView;//经营模式
	private TextView mainBusinessView;//主营业务
	private TextView companyAddrView;

	public CompanySearchViewCache(View baseView) {
		this.baseView = baseView;
	}

	public TextView getCompanyNameView() {
		if(null == companyNameView)
			companyNameView = (TextView) baseView.findViewById(R.id.companyNameId);
		return companyNameView;
	}

	public TextView getBusinessModelView() {
		if(null == businessModelView)
			businessModelView = (TextView) baseView.findViewById(R.id.businessModelId);
		return businessModelView;
	}

	public TextView getMainBusinessView() {
		if(null == mainBusinessView)
			mainBusinessView = (TextView) baseView.findViewById(R.id.mainBusinessId);
		return mainBusinessView;
	}

	public TextView getCompanyAddrView() {
		if(null == companyAddrView)
			companyAddrView = (TextView) baseView.findViewById(R.id.companyAddrId);
		return companyAddrView;
	}

}
